<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="../../static/bootstrap.min.css" rel="stylesheet">
	<link href="../../static/style.css" rel="stylesheet">
	<title>计算机网络综合实训</title>
</head>
<body>
	<div class="container">
		<div class="col-md-12 column">
			<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
				<div class="navbar-header">
					  <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
					  <span class="sr-only">Toggle navigation</span>
					  <span class="icon-bar"></span>
					  <span class="icon-bar"></span>
					  <span class="icon-bar"></span>
					  </button>
					  <a class="navbar-brand" href="#">华中科技大学</a>
				</div>
				<div class="collapse navbar-collapse" id="navbar-collapse">
					<ul class="nav navbar-nav navbar-right">
						<li><a href="/logout/adm">退出登陆&nbsp&nbsp&nbsp&nbsp&nbsp</a></li>
					</ul>
				</div>
			</nav>
		</div>
	</div>	

	<div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="/admin/show_course">课程详情</a></li>
            <li><a href="/admin/add_course">添加课程</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="/admin/show_notices">公告详情</a></li>
            <li><a href="/admin/add_notice">添加公告</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="/admin/reset_password">重置学生密码</a></li>
            <li><a href="/admin/add_teacher">添加教师用户</a></li>
            <li><a href="/admin/change_password">修改管理员密码</a></li>
          </ul>
        </div>
        <div class="col-md-offset-3 col-md-6">
        	{% if infos|length == 0 %}
        		<h3>暂未添加课堂！</h3>
        	{% else %}
				<h3>{{ course }}的课堂</h3>
				{% for info in infos %}
				<div class="panel panel-info">
					<div class="panel-heading">
						{{ info[1] }}&nbsp&nbsp&nbsp&nbsp
						任课老师:{{ info[4] }}
						<em class="pull-right">所属学期:{{ info[3] }}</em>
					</div>
					<div class="panel-body">{{ info[2] }}</div>
					<div class="panel-footer">
						<div class="btn-group" role="group">
						  <button type="button" class="btn btn-default" onclick="location='/admin/del_class/{{ info[0] }}'">删除课堂</button>
						</div>
					</div>
				</div>
				{% endfor %}
				<nav>
					<ul class="pagination pull-right">
						{% for num in total %}
						<li {% if num == aim %} class="active" {% endif %} ><a href="/admin/show_class/{{ course_id }}-{{ num }}">{{ num }}</a></li>
						{% endfor %}
					</ul>
				<nav>
			{% endif %}
        </div>
 	   </div>
 	</div>
	<footer class="footer">
		<div class="container">
			<p class="text-muted">Copyright © HUST SCHOOL, Powered By <a href="http://leonard-peng.github.io">彭佳伟</a> In 2015</p>
		</div>
	</footer>
	<script src="../../static/jquery.min.js"></script>
	<script src="../../static/bootstrap.min.js"></script>
</body>
</html>